package thread;

public class ThreadClass implements Runnable {

    private int i;

    public ThreadClass(int i) {
        this.i = i;
    }

    @Override
    public void run() {
        System.out.println("第" + i + "线程开始执行");
        try {
            Thread.sleep(10000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("123");
        System.out.println("第" + i + "线程执行完毕");

    }
}
